package com.msb.smsgateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: lmf
 * @Create: 2025/3/22 14:45
 * @module
 */

@FeignClient(name = "beacon-cache")
@RequestMapping("/cache")
public interface BeaconCacheClient {

    @GetMapping(value = "/hGetToString/{key}/{field}")
    String hGetToString(@PathVariable(value = "key") String key, @PathVariable(value = "field") String field);

    @GetMapping(value = "/hGetInteger/{key}/{field}")
    Integer hGetInteger(@PathVariable(value = "key") String key, @PathVariable(value = "field") String field);
}
